import 'package:flutter_douban/model/Subject.dart';
import 'package:json_annotation/json_annotation.dart';


part 'Response.g.dart';

@JsonSerializable(nullable: false)
class Response {
  int count;
  int start;
  int total;
  List<Subject> subjects;
  String title;

  Response(
    this.count,
    this.start,
    this.total,
    this.subjects,
    this.title,
  );

  factory Response.fromJson(Map<String, dynamic> json) => _$ResponseFromJson(json);
  Map<String, dynamic> toJson() => _$ResponseToJson(this);
}
